package com.pattern.facade;

/**
 * @author 冯志立
 * @create 2019-11-01 16:33
 */
public class Screen {
    //使用单例模式，饿汉式
    private static Screen instance = new Screen();

    public static Screen getInstance(){
        return instance;
    }

    public void up(){
        System.out.println("Screen打开了");
    }
    public void down(){
        System.out.println("Screen关闭了");
    }

}
